package com.aaa.mrcai.mapper;

import com.aaa.mrcai.pojo.entity.GoodsGrade;
import com.aaa.mrcai.pojo.vo.GoodsGradeVo;
import com.aaa.mrcai.query.GoodsGradeQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Demo class
 *
 * @Author: Wang
 * @Date: Created in 0:08 2021/12/7
 */
public interface GoodsGradeMapper {
    List<GoodsGrade> queryGoodsGrade(GoodsGradeQuery query);

    Long queryGoodsGradeTotalCount(GoodsGradeQuery query);

    Long isGoodsGradeExists(@Param("gtype") String gtype);

    int addGoodsGrade(GoodsGradeVo goodsGradeVo);

    GoodsGradeVo getGoodsGrade(int id);

    int deleteGoodsGrade(int id);

    long isUpdateGoodsGradeExists(GoodsGradeVo goodsGradeVo);

    int updateGoodsGrade(GoodsGradeVo goodsGradeVo);}
